/*************************
 * 
 * EDI接口系统,上传下载操作
 * 
 * **********************
 */

//上传响应事件
function ediUpload(obj){
	 var row = $("#ediUpload_DATALIST").datagrid("getSelected");
	 console.log("====>");
	 console.log(row.SQLTITLE);
	   $.ajax({
	        url: _m_url + 'edi/uploadXML',
	        type: 'post',
	        data: {
		   	"LOCALPATH" : row.LOCALPATH,
		   	"FTPPATH" : row.FTPPATH,
		   	"TYPE" : row.TYPE,
		   	"CUSTOMRANGE" : row.CUSTOMRANGE,
		   	"SQLTITLE" : row.SQLTITLE,
		   	"SQL" : row.SQL,
		   	"SQLITME" : row.SQLITME
	        },
	        success : function(data) {
	        	 console.log(data);
	        }
	    })
}


//下载响应事件  
function ediDownload(obj){
	 var row = $("#ediDown_DATALIST").datagrid("getSelected");
	 console.log(row);
	   $.ajax({
	        url: _m_url + 'edi/downloadXML',
	        type: 'post',
	        data: {
		   	"LOCALPATH" : row.LOCALPATH,
		   	"FTPPATH" : row.FTPPATH,
		   	"TYPE" : row.TYPE,
		   	"CUSTOMRANGE" : row.CUSTOMRANGE
	        },
	        success : function(data) {
	        	 console.log(data);
	        }
	    })
}

